package org.hzero.order.domain.vo;

import org.hzero.order.domain.entity.SoHeader;

import javax.persistence.Transient;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @ Description   :  SoHeaderVO类
 * @ Author        :  xiong.yilin@hand-china.com
 * @ CreateDate    :  2019/8/8 10:22
 */
public class SoHeaderVO extends SoHeader {

    //
    // 数据库字段
    // ------------------------------------------------------------------------------

    String companyName;

    String customerName;

    Double sumMoney;

    //
    // 非数据库字段
    // ------------------------------------------------------------------------------

    @Transient
    @NotEmpty
    List<SoLineVO> soLineList;

    //
    // getter/setter
    // ------------------------------------------------------------------------------

    /**
     * @return 总金额
     */
    public Double getSumMoney() {
        return sumMoney;
    }

    public void setSumMoney(Double sumMoney) {
        this.sumMoney = sumMoney;
    }

    /**
     * @return List<SoLineVO>
     */
    public List<SoLineVO> getSoLineList() {
        return soLineList;
    }

    public void setSoLineList(List<SoLineVO> soLineList) {
        this.soLineList = soLineList;
    }

    /**
     * @return 公司名
     */
    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    /**
     * @return 客户名
     */
    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }
}
